<?php
//未登录显示的head
if(!$cfg_ml->IsLogin()) {
?>

<div class="header mB10">
  <div class="wrapper">
    <div class="logo fLeft"><a href="<?php echo $cfg_indexurl?>"><img src="../member/images/member.gif" alt="会员中心" /></a> </div>
    <div class="fRight">
      <div class="topBar">
        <ul class="userMenu green">
          <li><a href="../" title="网站主页">网站主页</a></li>
          <li><a href="../member/index_do.php?fmdo=user&dopost=regnew" title="注册">注册</a></li>
          <li><a href="../member/login.php" title="登录">登录</a></li>
          <li class="help"><a href="http://help.dedecms.com" title="DEDECMS 帮助中心">帮助</a></li>
        </ul>
        <span>
        <script type="text/javascript">
           	var now=(new Date()).getHours();
			if(now>0&&now<=6){
				document.write("午夜好，");
			}else if(now>6&&now<=11){
				document.write("早上好，");
			}else if(now>11&&now<=14){
				document.write("中午好，");
			}else if(now>14&&now<=18){
				document.write("下午好，");
			}else{
				document.write("晚上好，");
			}
			</script>
        <i>游客</i>你可以选择到</span> </div>
      <div class="clear"></div>
    </div>
    <div class="clear"></div>
  </div>
</div>
<?php
}
//登录后显示的head
else {
?>
<div class="header mB10">
  <div class="wrapper">
    <div class="logo fLeft"><a href="<?php echo $cfg_indexurl?>"><img src="../member/images/member.gif" alt="会员中心" /></a> </div>
    <div class="fRight">
      <div class="topBar">
        <ul class="userMenu green">
        <li><a href="../" title="网站主页">网站主页</a></li>
          <li><a href="../member/edit_baseinfo.php" title="我的资料">我的资料</a></li>
          <li><a href="<?php echo $myurl; ?>" title="我的空间">我的空间</a></li>
          <li><a href="../member/index_do.php?fmdo=login&dopost=exit" title="注销">注销</a></li>
          <li class="help"><a href="http://help.dedecms.com" title="DEDECMS 帮助中心">帮助</a></li>
        </ul>
        <span>
        <script type="text/javascript">
           	var now=(new Date()).getHours();
			if(now>0&&now<=6){
				document.write("午夜好，");
			}else if(now>6&&now<=11){
				document.write("早上好，");
			}else if(now>11&&now<=14){
				document.write("中午好，");
			}else if(now>14&&now<=18){
				document.write("下午好，");
			}else{
				document.write("晚上好，");
			}
			</script>
        <i><?php echo $cfg_ml->M_UserName?></i></span> </div>
      <div class="clear"></div>
      <div class="navMenu">
        <ul class="heaNav white">
          <li class="home"><a href="../member/index.php" title="会员中心首页">首页</a></li>
          <script type="text/javascript" src="../member/js/box.js"></script>
          <li class="middle"><a href="../member/pm.php?TB_iframe=true&height=600&width=700" title="我的短信息" class="thickbox" target="_blank">短消息</a></li>
          <li class="middle"><a href="../member/guestbook_admin.php" title="留言板">留言板</a></li>
          <li class="middle"><a href="../member/mystow.php" title="收藏夹">收藏夹</a></li>
          <li class="middle"><a href="../member/myfriend.php" title="好友">好友</a></li>
          <li class="middle"><a href="../member/edit_space_info.php" title="设置">设置</a></li>
          <li class="more"><a href="../member/caicai.php" title="随便踩踩">随便踩踩</a></li>
        </ul>
        <div class="clear"></div>
      </div>
    </div>
    <div class="clear"></div>
  </div>
</div>
<?php
}
?>
